import Mock from 'mockjs'

Mock.setup({
   timeout: 500
})

Mock.mock('/getNum', () => {
   return String(Math.random()).slice(4, 5)
})